#include "ConfigManager.h"

using namespace session_mgr;

ConfigGeneratorPtr ConfigManager::getGenerator(const std::string& name)
{
    std::map<std::string, configGeneratorMaker>::iterator iter = generators.find(name);
    if(iter == generators.end())
        return ConfigGeneratorPtr();
    else
        return iter->second();
}
